﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KUMC.Neurology.SomatoTopo;

namespace KUMC.Neurology.SomatoTopo
{
    public partial class FormNewStudy : Form
    {
        public FormNewStudy()
        {
            InitializeComponent();
        }

        /*
         * Button
         * */
        private void btTemplateBrowse_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = Properties.Resources.IMAGE_EXT;

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                this.tbTemplate.Text = ofd.FileName;
            }
        }
        private void btNewStudyOK_Click(object sender, EventArgs e)
        {
            studyTitle = this.tbStudyTitle.Text;
            subjectOption = this.tbSubjectOption.Text;
            distributionOption = this.tbDistributionOption.Text;
            templateFile = this.tbTemplate.Text;
        }
        private void btNewStudyCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
            this.Close();
        }

        /*
         * Getter
         * */
        public string StudyTitle            { get { return studyTitle; } }
        public string SubjectOption         { get { return subjectOption; } }
        public string DistributionOption    { get { return distributionOption; } }
        public string TemplateFile          { get { return templateFile; } }

        /*
         * Member Variable
         * */
        private string studyTitle = null;
        private string subjectOption = null;
        private string distributionOption = null;
        private string templateFile = null;
    }
}
